<template>
  <div id="wrapper">
    <div id="page-layout">
      <sn-nav></sn-nav>
      <sn-scrollbar><router-view id="page-wrapper" /></sn-scrollbar>
      <i class="icon el-icon-quit" alt="退出" @click.stop="handleQuit"></i>
    </div>
  </div>
</template>

<script>
import SnNav from "@packages/nav";
export default {
  name: "App",
  components: { SnNav },
  methods: {
    handleQuit() {
      this.$store.dispatch('TOGGLE_USER_ISLOGIN', false)
      this.$cookie.clearCookie("token");
      this.$router.replace({ name: 'Login' })
    },
  },
};
</script>
